opus.Gizmo({
	name: "scnPrefs",
	dropTarget: true,
	type: "Palm.Mojo.Panel",
	h: "100%",
	styles: {
		zIndex: 2
	},
	components: [
		{
			name: "gps1",
			onSuccess: "gps1Success",
			onFailure: "gps1Failure",
			responseTime: "2",
			subscribe: false,
			type: "Palm.Mojo.Gps"
		}
	],
	chrome: [
		{
			name: "hdrPrefs",
			title: "Preferences",
			subtitle: "",
			type: "Palm.Mojo.PageHeader",
			l: 0,
			t: 0,
			h: "54"
		},
		{
			name: "scroller1",
			scrollPosition: {
				left: 0,
				top: 0
			},
			type: "Palm.Mojo.Scroller",
			l: 0,
			t: 53,
			h: "100%",
			styles: {
				cursor: "move",
				overflow: "hidden",
				opacity: 1
			},
			controls: [
				{
					name: "collFilter",
					dropTarget: true,
					className: " ",
					open: false,
					titleLabel: "Filtering Options",
					openHeight: 251,
					type: "Palm.Mojo.Collapsible",
					l: 0,
					t: 250,
					h: 40,
					styles: {
						overflow: "hidden",
						bgColor: ""
					},
					controls: [
						{
							name: "grpFilter",
							dropTarget: true,
							label: "",
							type: "Palm.Mojo.Group",
							l: 0,
							t: 0,
							h: 207,
							styles: {
								bgColor: " "
							},
							controls: [
								{
									name: "rowMag",
									dropTarget: true,
									rowType: "first",
									type: "Palm.Mojo.Row",
									l: 0,
									t: 0,
									h: "70",
									styles: {
										margin: "5",
										bgColor: ""
									},
									controls: [
										{
											name: "pnlMag",
											layoutKind: "hbox",
											dropTarget: true,
											type: "Palm.Mojo.Panel",
											l: 0,
											t: 0,
											h: "25",
											controls: [
												{
													name: "lblMag",
													modelName: "lblMagModel",
													label: "Minimum Magnitude",
													type: "Palm.Mojo.Label",
													l: 0,
													t: 0,
													h: "25",
													styles: {
														fontSize: "14px",
														oneLine: true
													}
												},
												{
													name: "lblMagNb",
													modelName: "lblMagNbModel",
													kind: "title",
													label: "3+",
													type: "Palm.Mojo.Label",
													l: 238,
													w: "80",
													t: 0,
													h: "25",
													styles: {
														fontSize: "18px",
														textAlign: "center",
														oneLine: true
													}
												}
											]
										},
										{
											name: "sliMag",
											modelName: "sliMagModel",
											value: 3,
											maxValue: 10,
											round: true,
											updateInterval: 0.1,
											onchange: "sliMagChange",
											type: "Palm.Mojo.Slider",
											l: 0,
											t: 25,
											h: "50"
										}
									]
								},
								{
									name: "rowMaxDist",
									dropTarget: true,
									rowType: "last",
									type: "Palm.Mojo.Row",
									l: 0,
									t: 70,
									h: "115",
									styles: {
										margin: "5"
									},
									controls: [
										{
											name: "lblMaxDist",
											modelName: "lblMaxDistModel",
											label: "Max distance to epicenter",
											type: "Palm.Mojo.Label",
											l: 0,
											t: 0,
											h: "30",
											styles: {
												oneLine: true,
												fontSize: "14px"
											}
										},
										{
											name: "sliMaxDist",
											modelName: "sliMaxDistModel",
											value: 20037,
											minValue: 0,
											maxValue: 20037,
											round: true,
											updateInterval: 0.1,
											onchange: "sliMaxDistChange",
											type: "Palm.Mojo.Slider",
											l: 0,
											t: 30
										},
										{
											name: "txtMaxDist",
											modelName: "txtMaxDistModel",
											value: "20037",
											inputName: "myMaxDist",
											modifierState: "num-lock",
											hintText: "",
											type: "Palm.Mojo.TextField",
											l: 0,
											w: "50%",
											t: "20",
											h: "35",
											hAlign: "center",
											styles: {
												textAlign: "center"
											}
										}
									]
								}
							]
						}
					]
				},
				{
					name: "collDisplay",
					dropTarget: true,
					open: false,
					titleLabel: "Display options",
					openHeight: 262,
					type: "Palm.Mojo.Collapsible",
					l: 0,
					t: 40,
					h: 40,
					styles: {
						overflow: "hidden"
					},
					controls: [
						{
							name: "grpDisplay",
							dropTarget: true,
							label: "",
							type: "Palm.Mojo.Group",
							l: 0,
							t: 0,
							h: 219,
							controls: [
								{
									name: "rowDist",
									dropTarget: true,
									rowType: "first",
									type: "Palm.Mojo.Row",
									l: 0,
									t: 0,
									h: "70",
									styles: {
										margin: "5"
									},
									controls: [
										{
											name: "liseDist",
											modelName: "liseDistModel",
											value: "K",
											choices: [
												{
													label: "Kilometers (km)",
													value: "K"
												},
												{
													label: "Miles (mi)",
													value: "M"
												},
												{
													label: "Nautical Mile (NM)",
													value: "N"
												}
											],
											label: "Display distance in",
											labelPlacement: "left",
											multiline: true,
											type: "Palm.Mojo.ListSelector",
											l: 0,
											t: 70,
											styles: {
												fontSize: "20px"
											}
										}
									]
								},
								{
									name: "rowRefresh",
									dropTarget: true,
									rowType: "middle",
									type: "Palm.Mojo.Row",
									l: 0,
									t: 69,
									h: "70",
									styles: {
										margin: "5"
									},
									controls: [
										{
											name: "pnlRefresh",
											layoutKind: "hbox",
											dropTarget: true,
											type: "Palm.Mojo.Panel",
											l: 0,
											t: 0,
											h: "25",
											controls: [
												{
													name: "lblRefresh",
													modelName: "lblRefreshModel",
													label: "Refresh data every",
													type: "Palm.Mojo.Label",
													l: 0,
													t: 0,
													h: "25",
													styles: {
														fontSize: "14px",
														oneLine: true
													}
												},
												{
													name: "lblRefreshNb",
													modelName: "lblRefreshNbModel",
													kind: "title",
													label: "30 min.",
													type: "Palm.Mojo.Label",
													l: 238,
													w: "80",
													t: 0,
													h: "25",
													styles: {
														fontSize: "18px",
														textAlign: "center",
														oneLine: true
													}
												}
											]
										},
										{
											name: "sliRefresh",
											modelName: "sliRefreshModel",
											maxValue: 120,
											round: true,
											updateInterval: 0.1,
											onchange: "sliRefreshChange",
											type: "Palm.Mojo.Slider",
											l: 0,
											t: 25,
											h: "50"
										}
									]
								},
								{
									name: "rowInfo",
									layoutKind: "hbox",
									dropTarget: true,
									rowType: "last",
									type: "Palm.Mojo.Row",
									l: 0,
									t: 70,
									h: "60",
									styles: {
										margin: "5",
										textAlign: "left"
									},
									controls: [
										{
											name: "lblInfo",
											modelName: "lblInfoModel",
											label: "Display data on map",
											type: "Palm.Mojo.Label",
											l: 0,
											t: 0,
											h: "60",
											styles: {
												textAlign: "left",
												opacity: 1,
												textColor: "",
												clip: false,
												oneLine: true
											}
										},
										{
											name: "cbInfo",
											modelName: "cbInfoModel",
											trueValue: true,
											falseValue: false,
											type: "Palm.Mojo.CheckBox",
											l: 320,
											w: "70",
											t: 0,
											h: "60",
											hAlign: "right",
											styles: {
												oneLine: false
											}
										}
									]
								}
							]
						}
					]
				},
				{
					name: "collOtherOpt",
					dropTarget: true,
					titleLabel: "Other Options",
					openHeight: 431,
					type: "Palm.Mojo.Collapsible",
					l: 0,
					t: 302,
					h: 431,
					styles: {
						overflow: "hidden"
					},
					controls: [
						{
							name: "grpMyLoc",
							dropTarget: true,
							label: "My Location",
							type: "Palm.Mojo.Group",
							l: 0,
							t: 0,
							h: 390,
							controls: [
								{
									name: "rowTxt",
									dropTarget: true,
									rowType: "first",
									type: "Palm.Mojo.Row",
									l: 0,
									t: 0,
									h: "auto",
									controls: [
										{
											name: "lblMyLoc",
											modelName: "lblMyLoc",
											kind: "title",
											label: "Only if GPS is switched off or not able to fix my position, use the following coordinates to calculate distance to epicenter:",
											type: "Palm.Mojo.Label",
											l: 0,
											t: 0,
											h: 68,
											styles: {
												padding: "5",
												fontSize: "14px",
												clip: false,
												oneLine: false
											}
										}
									]
								},
								{
									name: "rowLat",
									dropTarget: true,
									rowType: "middle",
									type: "Palm.Mojo.Row",
									l: 0,
									t: 0,
									h: "70",
									controls: [
										{
											name: "lblLat",
											modelName: "lblLatModel",
											label: "Latitude",
											type: "Palm.Mojo.Label",
											l: 0,
											t: 35,
											h: "30",
											styles: {
												fontSize: "14px",
												oneLine: true
											}
										},
										{
											name: "txtLat",
											modelName: "txtLatModel",
											inputName: "myLat",
											autoFocus: true,
											modifierState: "num-lock",
											hintText: "enter latitude in decimal degrees",
											type: "Palm.Mojo.TextField",
											l: 0,
											t: 30,
											h: "35"
										}
									]
								},
								{
									name: "rowLon",
									dropTarget: true,
									rowType: "middle",
									type: "Palm.Mojo.Row",
									l: 0,
									t: 68,
									h: 70,
									controls: [
										{
											name: "lblLon",
											modelName: "lblLonModel",
											label: "Longitude",
											type: "Palm.Mojo.Label",
											l: 0,
											t: 0,
											h: "30",
											styles: {
												fontSize: "14px",
												oneLine: true
											}
										},
										{
											name: "txtLon",
											modelName: "txtLonModel",
											inputName: "myLon",
											modifierState: "num-lock",
											hintText: "enter longitude in decimal degrees",
											type: "Palm.Mojo.TextField",
											l: 0,
											t: 20,
											h: "35",
											styles: {
												oneLine: true
											}
										}
									]
								},
								{
									name: "rowBtn",
									dropTarget: true,
									rowType: "middle",
									type: "Palm.Mojo.Row",
									l: 0,
									t: 208,
									h: 63,
									controls: [
										{
											name: "btnGetMyLoc",
											ontap: "btnGetMyLocTap",
											modelName: "btnGetMyLocModel",
											disabled: undefined,
											buttonClass: "affirmative",
											label: "Get it from GPS",
											type: "Palm.Mojo.ActivityButton",
											l: 0,
											t: 0
										}
									]
								},
								{
									name: "rowOverride",
									layoutKind: "hbox",
									dropTarget: true,
									rowType: "last",
									type: "Palm.Mojo.Row",
									l: 0,
									t: 268,
									h: 71,
									controls: [
										{
											name: "lblOverride",
											modelName: "lblOverrideModel",
											kind: "title",
											label: "Overwrite those values each time a location fix is performed",
											type: "Palm.Mojo.Label",
											l: 0,
											t: 0,
											h: 70,
											styles: {
												padding: "5",
												fontSize: "14px",
												clip: false,
												oneLine: false
											}
										},
										{
											name: "cbOverride",
											modelName: "cbOverrideModel",
											trueValue: true,
											falseValue: false,
											type: "Palm.Mojo.CheckBox",
											l: 243,
											w: 59,
											t: 0,
											h: "60"
										}
									]
								}
							]
						}
					]
				}
			]
		}
	]
});